What is definition of melody?

Melody refers to a sequence of musical notes or pitches played in a particular rhythm, tone, and phrase. It is the primary part or tune of a musical composition that stands out and can be easily recognizable. Melody determines the mood and emotion of a song and helps in creating a memorable hook that makes it unique and distinguishable from others. It is usually created around a specific key and follows a set of musical rules to enhance its flow and structure. Melody is an essential aspect of music and plays a vital role in conveying the overall message and meaning of a song.